﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustServerList.aspx.cs" Inherits="Module_CustServerManger_CustServerList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
 <script type="text/javascript">
     function AddTab(url, ids, texts) {
         var node = {
             attributes: {
                 href: url
             },
             text: texts,
             id: ids
         };
         this.parent.parent.addExampleTab.apply(this.parent.parent, [node]);
     }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="0px" EnableBackgroundColor="true"
        ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Fit">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="Button1" runat="server" Text="新增服务客户信息">
                    </ext:Button>
                    <ext:Button ID="BtnDel" runat="server" Text="删除服务客户信息" OnClick="BtnDel_Click">
                    </ext:Button>
                    <ext:Button ID="Button9" runat="server" Text="查找服务客户信息" Hidden="true">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Panel ID="Panel2" runat="server" BodyPadding="0px" EnableBackgroundColor="true"
                ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Fit">
                <Items>
                    <ext:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="true" EnableRowNumber="true"
                        ShowBorder="false" ShowHeader="false" AllowPaging="true" Title="Grid"  DataKeyNames="CustID"
                        OnRowDataBound="Grid1_RowDataBound">
                        <Columns>
                            <ext:TemplateField >
                                <ItemTemplate >
                                    <asp:LinkButton ID="lbfAction1" runat="server" Text="修改客户信息" ></asp:LinkButton>
                                </ItemTemplate>
                            </ext:TemplateField>
                            <ext:BoundField HeaderText="客户名称" Width="100px" DataField="CustName" />
                            <ext:BoundField HeaderText="所在公司" Width="100px" DataField="CustCompany"/>
                            <ext:BoundField HeaderText="客户电话" Width="100px" DataField="CustTel"/>
                            <ext:BoundField HeaderText="客户地址" Width="150px" DataField="CustAddress"/>
                            <ext:BoundField HeaderText="添加时间" Width="150px" DataField="CustCreateTime"/>
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    
    <ext:Window ID="Window2" runat="server" Height="350px" IsModal="true" Popup="false"
        Title="Window" Width="600px" EnableIFrame="true" IFrameUrl="#">
    </ext:Window>
   
    </form>
</body>
</html>
